Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub actions #4

Merged
merged 10 commits into from
Jul 19, 2021
Merged

Add GitHub actions #4

merged 10 commits into from
Jul 19, 2021

Conversation

davidlumley
Copy link
Contributor

@davidlumley davidlumley commented Jul 18, 2021

NOTE: I've currently opened this PR against the issue1 branch as main is currently empty.

I believe it makes sense to merge issue1 into main first, then to merge this PR against main to ensure each PR is as small as it can be (and therefore will be directionally easier to review).

Once the branch issue1 has been merged in, we can install Prettier and run it locally before rebasing this branch to ensure CI is in a green state.


  • Adds Prettier for automatic code formatting
  • Adds commands to run ESlint and associated documentation
  • Adds a GitHub action to lint the codebase when commits are pushed
  • Adds a GitHub action to test the codebase when commits are pushed
  • Sets our tests up to work with terra.js (Note: there is an outstanding issue here, need to determine if it is in how the wallet provider is being used, or whether it is in a third party dependency)

Create-React-App comes with ESlint out of the box, so this PR adds a command to take advantage of that and also installs Prettier to help format code programmatically and in-editor.

It also adds a GitHub action to lint, and to test the codebase when commits are pushed. For now, these are configured as seperate jobs meaning they run independently.
The advantage of this is that if tests fail, the linter will still be ran and vice versa - this means anyone working on the repo will have much more granular feedback (e.g. a linting error does not prevent you from knowing whether your tests worked in CI).
The downside is this uses more automation minutes for the repo (3k, or 50k depending on your plan).
If you feel sensitive to how many minutes are used, I'd combine them into a single job but for now believe you are best served by running them in parallel.

To start using this, I recommend adding branch protection to main: to stop anyone from pushing directly to main, and to ensure status checks pass before a PR can be merged into main.
Screen Shot 2021-07-18 at 4 02 50 PM
This will help ensure main is always green, and ready to deploy.

@davidlumley davidlumley changed the title [WIP] Add GitHub actions Add GitHub actions Jul 19, 2021
@sborod sborod merged commit e05edb6 into issue1 Jul 19, 2021
@SovereignAndrey SovereignAndrey deleted the davidlumley/add-github-actions branch August 2, 2021 11:00
0xNeshi added a commit that referenced this pull request Feb 8, 2022
SovereignAndrey pushed a commit that referenced this pull request Mar 17, 2022
…rresponding logic (#815)

* Add AdditionalInformation page

* Add button section

* Add Form values and schema types

* Add website field

* Change website to description

* Add org. name field

* Move Button and InputRow to /common folder

* Add fixed height to label part of InputRow

* Add LogoInput

* Refactor ButtonSections

* Increase Loader width in ButtonSections

* Add LogoInput to page

* Create common RichTextEditor and add it to DescriptionInput

* Move Editor-related components to EditorComponent

* Refactor EditorComponent

* Move editor logic init to useEditor hook

* Switch Logo and Description positions

* Update step 3 target endpoint on lambda

* Enable step 4 submission

* Update Dashboard step 4 status

* Prepopulate charity overview

* Remove min-h-10 from tailwind config

* Remove comment from useSubmit

* Rename RichEditor import in DescriptionInput to RichTextEditor

* Add type to RichTextEditor

* Add type guard to FileDropzone

* Remove useCallbacks where EditorState is in deps array

* Add CharityBanner input

* Update image size validation

* Add more valid image types

* Change 'id' to 'htmlFor' in InputRow

* Add CharityBanner to User type

* Add 'getStepFour' logic for registration status

* Add default values for step 3

* Remove image formats not supported by all browswers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants